package os;

/**
 * Models an OS user. The user can execute processes. Each user has a privilege
 * which indicates the instructions he can execute. There is a default user for
 * the OS called "Kernel".
 * 
 * @author Ahmed El-Eryan
 * 
 */
public class MiniUser
{

	/**
	 * User name.
	 */
	private String username;

	/**
	 * User privilege. Kernel privilege is 0 which is the highest privilege.
	 */
	private int privilege;

	/**
	 * Constructor for the MiniUser
	 * 
	 * @param username
	 *            User name.
	 * @param privilege
	 *            User privilege.
	 */
	public MiniUser(String username, int privilege)
	{
		this.username = username;
		this.privilege = privilege;
	}

	/**
	 * Getter for the user name.
	 * 
	 * @return User name.
	 */
	public String getUsername()
	{
		return username;
	}

	/**
	 * Getter for the user privilege.
	 * 
	 * @return User privilege.
	 */
	public int getPrivilege()
	{
		return privilege;
	}

}
